<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<head>
		<title>download</title>
		
		<style>
		.datalist{border:1px solid #0058a3;	/* 表格边框 */
							font-family:Arial;
							border-collapse:collapse;	/* 边框重叠 */
							background-color:#eaf5ff;	/* 表格背景色 */
							font-size:18px; }
							
		.datalist caption{padding-bottom:5px;
							font:bold 3em;  /*字体大小*/ 
							text-align:center; }
							
		.datalist th{  border:1px solid #0058a3;	/* 行名称边框 */
							background-color:#4bacff;	/* 行名称背景色 */
							color:#FFFFFF;		/* 行名称颜色 */
							font-weight:bold;
							padding-top:4px; padding-bottom:4px;
							padding-left:12px; padding-right:12px;
							text-align:center; }
		
		.datalist td{ border:1px solid #0058a3;	/* 单元格边框 */
							text-align:left;
							padding-top:4px; padding-bottom:4px;
							padding-left:10px; padding-right:10px; }

		.datalist tr.altrow{ background-color:#c7e5ff; }


		
		</style>
		
		<script type="text/javascript" src="/Test/js/jquery.js"></script>
		<script type="text/javascript" src="/Test/js/teacher/teaHomework.js"></script>
	</head>
	<body>
		<div id="questionContent">
		<center>
		<table class="datalist">
		<caption>作业下载信息</caption>
		
			<tr>
				
				<th align="center">上交人</th>
				<th align="center">分数</th>
				<th align="center">文件下载</th>
					
			</tr>
			<c:forEach var="uploadFiles" items="${uploadFiles}">
				<tr>
					<td>${uploadFiles.stuUserID}</td>
					<td>
		 			<c:if test="${uploadFiles.score == 0}">
		 				<span style="color:red">
		 							<a>未评分</a>
		 							<input type="text" class="inputscore" style="width:50px" maxlength="2" id="<c:out value="${uploadFiles.uploadRealName}"/>"/>
		 							<input type='button' value='评分' name="<c:out value="${uploadFiles.uploadRealName}"/>" class="setscore" />
		 				</span>
		 			</c:if>
					<c:if test="${uploadFiles.score != 0}">
						${uploadFiles.score}
						
					</c:if>
					</td>
					<td>
						<a href="download.action?name=${uploadFiles.uploadRealName }&realname=${uploadFiles.uploadFileName }">${uploadFiles.uploadFileName}</a>
					</td>
				</tr>

			</c:forEach>


		</table>
		
		
		</center>
	</div>
	</body>
</html>